/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightAdjustFood;
import com.sasis.dao.FlightAdjustFoodDao;
import com.sasis.service.FlightAdjustFoodManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightAdjustFoodManagerImpl extends BaseManager implements FlightAdjustFoodManager {
    private FlightAdjustFoodDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightAdjustFoodDao(FlightAdjustFoodDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightAdjustFoodManager#getFlightAdjustFoods(com.sasis.model.FlightAdjustFood)
     */
    public List getFlightAdjustFoods(final FlightAdjustFood flightAdjustFood) {
        return dao.getFlightAdjustFoods(flightAdjustFood);
    }

    /**
     * @see com.sasis.service.FlightAdjustFoodManager#getFlightAdjustFood(String id)
     */
    public FlightAdjustFood getFlightAdjustFood(final String id) {
        return dao.getFlightAdjustFood(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightAdjustFoodManager#saveFlightAdjustFood(FlightAdjustFood flightAdjustFood)
     */
    public int saveFlightAdjustFood(FlightAdjustFood flightAdjustFood) {
       return dao.saveFlightAdjustFood(flightAdjustFood);
    }

    /**
     * @see com.sasis.service.FlightAdjustFoodManager#removeFlightAdjustFood(String id)
     */
    public void removeFlightAdjustFood(FlightAdjustFood flightAdjustFood) {
        dao.removeFlightAdjustFood( flightAdjustFood);
    }
    
    public void deleteFlightAdjustFood(FlightAdjustFood flightAdjustFood){
    	dao.deleteFlightAdjustFood(flightAdjustFood);
    }
    
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
